package interview.thread;

/**
 * start和run方法的区别
 *
 * @Author: cctv
 * @Date: 2019/5/16 17:47
 */
public class ThreadTest {
    private static void attack(){
        System.out.println("Fight");
        System.out.println("Current Thread is:"+Thread.currentThread().getName());
    }

    public static void main(String[] args) {
        Thread t = new Thread(() -> attack());
        System.out.println("current main thread is :"+Thread.currentThread().getName());
        t.start();
//        t.run();
    }
}
